home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19950329-19950528 / 000225_news@columbia.edu_Tue Apr 25 13:02:20 1995.msg < prev    next >
Internet Message Format  |  2020-01-01  |  4KB

  1. Received: from apakabar.cc.columbia.edu by watsun.cc.columbia.edu with SMTP id AA09828
  2.   (5.65c+CU/IDA-1.4.4/HLK for <kermit.misc@watsun.cc.columbia.edu>); Tue, 25 Apr 1995 09:02:43 -0400
  3. Received: by apakabar.cc.columbia.edu id AA22469
  4.   (5.65c+CU/IDA-1.4.4/HLK for kermit.misc@watsun); Tue, 25 Apr 1995 09:02:39 -0400
  5. Path: news.columbia.edu!watsun.cc.columbia.edu!fdc
  6. From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
  7. Newsgroups: comp.protocols.kermit.misc
  8. Subject: Re: Keyboard initiated macro
  9. Date: 25 Apr 1995 13:02:20 GMT
  10. Organization: Columbia University
  11. Lines: 67
  12. Message-Id: <3nirss$lt7@apakabar.cc.columbia.edu>
  13. References: <D7K6qq.D8K@boss.cs.ohiou.edu>
  14. Nntp-Posting-Host: watsun.cc.columbia.edu
  15. Apparently-To: kermit.misc@watsun.cc.columbia.edu
  16.  
  17. In article <D7K6qq.D8K@boss.cs.ohiou.edu>,
  18. Mike Snavely <snavelym@oumail1.email.ohiou.edu> wrote:
  19. : This question relates to a MS-Kermit trick that used to work for us
  20. : with version 3.10 and 3.11, but stopped working when commands were
  21. : obsoleted in version 3.12 or 3.13.
  22. : Here's what I used to do, and it worked rather nicely.  I have two 
  23. : different keyboard mappings we use with MS-Kermit.  One is an IBM 
  24. : mainframe mapping, another is a DEC VAX mapping.  I used to program
  25. : MS-Kermit, such that CTRL-F1 would serve as a toggle.  If I pressed
  26. : it once, it would toggle from IBM to DEC, if I pressed it again, it
  27. : would toggle back from DEC to IBM.  I did that with the use of the
  28. : pre-defined TERMINALR and TERMINALS macros.  See code below. 
  29. : Excerpt from MSKERMIT.INI file:
  30. :   assign \%i ibm.set
  31. :   assign \%v dec.set
  32. :   assign \%p keymap.ini
  33. :   def terminalr take \%v,-
  34. :    echo Keyboard switched to DEC settings \13,-
  35. :    pause 2, connect
  36. :   def terminals take \%i,-
  37. :    echo Keyboard switched to IBM settings \13,-
  38. :    pause 2, connect
  39. :   def product take \%p, connect
  40. This should still work.  TERMINALR and TERMINALS can still be used as
  41. macro names, but there is now nothing special about them, and they are
  42. no longer tied to an escape sequence.
  43.  
  44. The PRODUCT macro and associated escape sequence should still work as
  45. described in "Using MS-DOS Kermit".
  46.  
  47. : Furthermore, the KEYMAP.INI file allowed host-triggered ESCAPE sequences
  48. : to perform the keyboard mapping swap on login and logout from the VAX.
  49. As described at length in the KERMIT.UPD file that comes with MS-DOS Kermit,
  50. the escape sequence that was used for this purpose suddenly popped up in
  51. DEC software (e.g. DECnotes, DECforms, etc), so we could not use it any more.
  52.  
  53. Rather than "invent" another new escape sequence for this purpose, only to
  54. have it usurpred again, and then repeat the process indefinitely, we chose
  55. a new path: use an escape sequence that is already defined for the VT320,
  56. called Application Program Command (APC).  It works differently from the
  57. old TERMINALR/S method, however.  Instead of requiring each user to have
  58. these macros defined, it allows the host application to control everything,
  59. even when MS-DOS Kermit is running "bare".  From a management standpoint,
  60. this is a lot better, right?  Procedures are defined (and fixed, if needed)
  61. in one place rather than hundreds, etc.
  62.  
  63. : Each of the keyboard mapping files then had a definition for CTRL-F1
  64. : that pointed to the appropriate macro.
  65. : IBM.SET had the following line... 
  66. :   set key  \1374 \Kterminalr     ; CTRL-F1 = Swap to DEC settings
  67. : DEC.SET had the following line...
  68. :   set key  \1374 \Kterminals     ; CTRL-F1 = Switch to IBM settings
  69. : Terminalr and Terminals are no longer supported.  I have tried a number
  70. : of possible solutions and have yet to be completely satisfied.  
  71. : Anybody have any suggestions?
  72. Read the section on APC in KERMIT.UPD (section 10 for version 3.14).
  73.  
  74. - Frank